﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Showroom.BLL;

namespace ShowroomMobile
{
    public partial class AdminBasePage : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected override void OnPreLoad(EventArgs e)
        {
            base.OnPreLoad(e);

            if (View_Users.GetCurrentUser() == null)
                Response.Redirect(Utilities.Root + "/LoginAdmin.aspx?url=" + this.Request.Url);
        }
    }
}